package com.felix.sample;

import android.app.Application;

import com.felix.socketiolibrary.WebSocketHelper;

/**
 * Created by Felix.Zhong on 2018/11/9 11:05
 */
public class MyApp extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        initWebSocket();
    }

    /**
     * 初始化WebSocket
     */
    private void initWebSocket() {
        WebSocketHelper.getInstance().initAndConnect();
        WebSocketHelper.getInstance().listener(null, null);
    }
}
